import request from '@/utils/request'

// 查询老系统数目清单列表
export function listBooklist(query) {
  return request({
    url: '/oldsystem/booklist/list',
    method: 'get',
    params: query
  })
}

// 查询老系统数目清单详细
export function getBooklist(id) {
  return request({
    url: '/oldsystem/booklist/' + id,
    method: 'get'
  })
}

// 新增老系统数目清单
export function addBooklist(data) {
  return request({
    url: '/oldsystem/booklist',
    method: 'post',
    data: data
  })
}

// 修改老系统数目清单
export function updateBooklist(data) {
  return request({
    url: '/oldsystem/booklist/put',
    method: 'post',
    data: data
  })
}

// 删除老系统数目清单
export function delBooklist(id) {
  return request({
    url: '/oldsystem/booklist/' + id + '/delete',
    method: 'post'
  })
}
